package com.xiechur.service.impl;


import com.xiechur.dao.UserMapper;
import com.xiechur.entity.User;
import com.xiechur.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    public User getByUserName(String userName) {
        return userMapper.getByUserName(userName);
    }

    public Set<String> getRoles(String userName) {
        return userMapper.getRoles(userName);
    }

    public Set<String> getPermissions(String userName) {
        return userMapper.getPermissions(userName);
    }

}
